package ${basepackage}.velocity.tool;
import com.cmsky.open.core.tool.VelocityTool;

<#assign className = table.className>
public class ${className}Tool extends VelocityTool{
	@Override
	public void initSelf() {
		
	}
	
	public static final String TABLE_ALIAS = "${table.tableAlias}";
	public static final String get_TABLE_ALIAS(){
		return TABLE_ALIAS;
	}
	<#list table.columns as column>
	public static final String ALIAS_${column.constantName} = "${column.columnAlias}";
	public static final String get_ALIAS_${column.constantName}(){
		return ALIAS_${column.constantName};
	} 
	</#list>
	
	//date formats
	<#list table.columns as column>
	<#if column.isDateTimeColumn>
	public static final String get_FORMAT_${column.constantName}(){
		return DATE_FORMAT;
	}
	</#if>
	</#list>
}